package models

import (
	"gorm.io/gorm"
)

type Activity struct {
	gorm.Model
	GoodsID       int     //商品ID
	ActivityPrice float64 //火哦东价格
	Progress      string  //成团进度
	Countdown     string  //倒计时
}

func (a *Activity) AddActivity() error {
	return DB.Create(&a).Error
}

type ActivityInfo struct {
	Activity
	GoodsTitle string
	GoodsStock int64
}
